package micro.beauty.common.core.page;

import java.io.Serializable;
import java.util.List;

/**
* @Description:    分页DTO
* @Author:         liuliya
* @CreateDate:     2020/6/9 13:06
*/
public class PageDTO<T> implements Serializable {

    private static final long serialVersionUID = 2738883309784924342L;

    private List<T> records;

    private long current;

    private long size;

    private long total;

    public PageDTO(long current, long size, long total) {
        this.current = current;
        this.size = size;
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
